<div id="center_right">
  <div class="addLog">
    <% remote_form_for @reship,
      :update => "reship_content",
      :url => documents_show_reship_url(@reship),
      :method => :put,
      :before => "copy_value_from_fckeditor_to('reship_#{@reship.id}_content_editor','reship_#{@reship.id}_content_editor');",
      :html => {
      :id => "edit_document_reship_form"
    } do |f| %>
      <div class="title">
        <p>标题&nbsp;:&nbsp;</p><%= f.text_field :title %>
        <p>来源&nbsp;:&nbsp;</p><%= f.text_field :source, :class => "origin" %>
        <p>分类&nbsp;:&nbsp;</p>
        <%= text_field_with_auto_complete("document_type",
          :name,{
          }, {
            :url => auto_complete_document_types_url,
            :with => "'&name=' + $F('document_type_name') ",
            :method =>:get,
            :skip_style => true
          }) %><%#= text_field_tag :documet_name, nil, :class => "classify" %>
        <!-- link_to "读取草稿" -->
      </div>
      <%= fckeditor_textarea("reship", "content", :toolbarSet => 'Simple', :width => '650px', :height => '600px') %>
      <%= f.hidden_field :author_id %>
      <%= hidden_field_tag :page_number, @current_page %>
      <div class="button">
        <%= link_to_function image_tag("valleyer/issue.jpg"), "$('edit_document_reship_form').onsubmit()" %>
        <%= link_to_remote image_tag("valleyer/cancel.jpg"),
          :update => "reship_content",
          :url => documents_show_reship_url(current_valleyer, :log_page_number => @current_page),
          :method => :get
      %>
      </div>
    <% end %>
  </div>
</div>